package io.renren.modules.app.service.impl;


import io.renren.common.exception.RRException;
import io.renren.modules.app.entity.BimRequestEntity;
import io.renren.modules.app.service.BimRequestService;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.http.HttpStatus;
import org.springframework.stereotype.Service;

@Data
@ConfigurationProperties(prefix = "bim")
@Service("bimRequestService")
public class BimRequestServiceImpl implements BimRequestService {

    private String bimRemoteUser;

    private String bimRemotePwd;
    @Override
    public void checkAccount(BimRequestEntity params) {
        String bimRemoteUser = params.getBimRemoteUser();
        String bimRemotePwd = params.getBimRemotePwd();
        if(bimRemoteUser.equals(this.bimRemoteUser)&&bimRemotePwd.equals(this.bimRemotePwd)){

        }else{
            throw new RRException( "用户账号密码错误", HttpStatus.UNAUTHORIZED.value());
        }

    }

}